package cn.stylefeng.guns.modular.household.exception;

import cn.stylefeng.guns.core.consts.ProjectConstants;
import cn.stylefeng.roses.kernel.rule.constants.RuleConstants;
import cn.stylefeng.roses.kernel.rule.exception.AbstractExceptionEnum;
import lombok.Getter;

/**
 * 权属户异常
 *
 * @author lichenhui
 * @date 2024/03/20
 */
@Getter
public enum HouseholdEnum implements AbstractExceptionEnum {

    HOUSEHOLD_MEMBER_EMPTY_ERROR(RuleConstants.BUSINESS_ERROR_TYPE_CODE + ProjectConstants.BUSINESS_EXCEPTION_STEP_CODE + "01", "权属户家庭成员不能为空"),
    HOUSEHOLD_HOUSING_EMPTY_ERROR(RuleConstants.BUSINESS_ERROR_TYPE_CODE + ProjectConstants.BUSINESS_EXCEPTION_STEP_CODE + "02", "权属户房屋信息不能为空"),
    HOUSEHOLD_NOT_FOUND(RuleConstants.BUSINESS_ERROR_TYPE_CODE + ProjectConstants.BUSINESS_EXCEPTION_STEP_CODE + "03", "权属户信息未找到");

    /**
     * 错误编码
     */
    private final String errorCode;

    /**
     * 提示用户信息
     */
    private final String userTip;

    HouseholdEnum(String errorCode, String userTip) {
        this.errorCode = errorCode;
        this.userTip = userTip;
    }

}
